package com.arsn.myf.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 字典对象
 *
 * @author zhongrj
 * @date 2022-12-12 20:18:50
 */
@Data
@TableName("sys_dict")
@ApiModel(value = "Dict对象", description = "Dict对象")
public class Dict implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
    * 主键
    */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
    * 父id
    */
    @ApiModelProperty(value = "父id")
    private Long parentId;

    /**
    * 字典编号
    */
    @ApiModelProperty(value = "字典编号")
    private String code;

    /**
    * 字典值
    */
    @ApiModelProperty(value = "字典值")
    private String dictValue;

    /**
    * 字典名称
    */
    @ApiModelProperty(value = "字典名称")
    private String dictName;

    /**
    * 排序
    */
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
    * 字典备注
    */
    @ApiModelProperty(value = "字典备注")
    private String remark;

    /**
    * 是否启用
    */
    @ApiModelProperty(value = "是否启用")
    private Integer isEnable;

    /**
    * 是否已删除
    */
    @ApiModelProperty(value = "是否已删除")
    private Integer isDeleted;

}
